Optimal. Leaf size=75 \[ -\frac {2 (c+d x) \cos (a+b x)}{3 b}+\frac {2 d \sin (a+b x)}{3 b^2}-\frac {(c+d x) \cos (a+b x) \sin ^2(a+b x)}{3 b}+\frac {d \sin ^3(a+b x)}{9 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.03, antiderivative size = 75, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {3391, 3377,
2717} \begin {gather*} \frac {d \sin ^3(a+b x)}{9 b^2}+\frac {2 d \sin (a+b x)}{3 b^2}-\frac {2 (c+d x) \cos (a+b x)}{3 b}-\frac {(c+d x) \sin ^2(a+b x) \cos (a+b x)}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2717
Rule 3377
Rule 3391
Rubi steps
\begin {align*} \int (c+d x) \sin ^3(a+b x) \, dx &=-\frac {(c+d x) \cos (a+b x) \sin ^2(a+b x)}{3 b}+\frac {d \sin ^3(a+b x)}{9 b^2}+\frac {2}{3} \int (c+d x) \sin (a+b x) \, dx\\ &=-\frac {2 (c+d x) \cos (a+b x)}{3 b}-\frac {(c+d x) \cos (a+b x) \sin ^2(a+b x)}{3 b}+\frac {d \sin ^3(a+b x)}{9 b^2}+\frac {(2 d) \int \cos (a+b x) \, dx}{3 b}\\ &=-\frac {2 (c+d x) \cos (a+b x)}{3 b}+\frac {2 d \sin (a+b x)}{3 b^2}-\frac {(c+d x) \cos (a+b x) \sin ^2(a+b x)}{3 b}+\frac {d \sin ^3(a+b x)}{9 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.13, size = 59, normalized size = 0.79 \begin {gather*} \frac {-27 b (c+d x) \cos (a+b x)+3 b (c+d x) \cos (3 (a+b x))+d (27 \sin (a+b x)-\sin (3 (a+b x)))}{36 b^2} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.05, size = 95, normalized size = 1.27
method | result | size |
risch | \(-\frac {3 \left (d x +c \right ) \cos \left (b x +a \right )}{4 b}+\frac {3 d \sin \left (b x +a \right )}{4 b^{2}}+\frac {\left (d x +c \right ) \cos \left (3 b x +3 a \right )}{12 b}-\frac {d \sin \left (3 b x +3 a \right )}{36 b^{2}}\) | \(64\) |
derivativedivides | \(\frac {\frac {d a \left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3 b}-\frac {c \left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3}+\frac {d \left (-\frac {\left (b x +a \right ) \left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3}+\frac {\left (\sin ^{3}\left (b x +a \right )\right )}{9}+\frac {2 \sin \left (b x +a \right )}{3}\right )}{b}}{b}\) | \(95\) |
default | \(\frac {\frac {d a \left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3 b}-\frac {c \left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3}+\frac {d \left (-\frac {\left (b x +a \right ) \left (2+\sin ^{2}\left (b x +a \right )\right ) \cos \left (b x +a \right )}{3}+\frac {\left (\sin ^{3}\left (b x +a \right )\right )}{9}+\frac {2 \sin \left (b x +a \right )}{3}\right )}{b}}{b}\) | \(95\) |
norman | \(\frac {-\frac {4 c \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b}-\frac {4 c}{3 b}+\frac {4 d \tan \left (\frac {b x}{2}+\frac {a}{2}\right )}{3 b^{2}}+\frac {32 d \left (\tan ^{3}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{9 b^{2}}+\frac {4 d \left (\tan ^{5}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{3 b^{2}}-\frac {2 d x}{3 b}-\frac {2 d x \left (\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b}+\frac {2 d x \left (\tan ^{4}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{b}+\frac {2 d x \left (\tan ^{6}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )}{3 b}}{\left (1+\tan ^{2}\left (\frac {b x}{2}+\frac {a}{2}\right )\right )^{3}}\) | \(151\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.33, size = 104, normalized size = 1.39 \begin {gather*} \frac {12 \, {\left (\cos \left (b x + a\right )^{3} - 3 \, \cos \left (b x + a\right )\right )} c - \frac {12 \, {\left (\cos \left (b x + a\right )^{3} - 3 \, \cos \left (b x + a\right )\right )} a d}{b} + \frac {{\left (3 \, {\left (b x + a\right )} \cos \left (3 \, b x + 3 \, a\right ) - 27 \, {\left (b x + a\right )} \cos \left (b x + a\right ) - \sin \left (3 \, b x + 3 \, a\right ) + 27 \, \sin \left (b x + a\right )\right )} d}{b}}{36 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.44, size = 62, normalized size = 0.83 \begin {gather*} \frac {3 \, {\left (b d x + b c\right )} \cos \left (b x + a\right )^{3} - 9 \, {\left (b d x + b c\right )} \cos \left (b x + a\right ) - {\left (d \cos \left (b x + a\right )^{2} - 7 \, d\right )} \sin \left (b x + a\right )}{9 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.19, size = 126, normalized size = 1.68 \begin {gather*} \begin {cases} - \frac {c \sin ^{2}{\left (a + b x \right )} \cos {\left (a + b x \right )}}{b} - \frac {2 c \cos ^{3}{\left (a + b x \right )}}{3 b} - \frac {d x \sin ^{2}{\left (a + b x \right )} \cos {\left (a + b x \right )}}{b} - \frac {2 d x \cos ^{3}{\left (a + b x \right )}}{3 b} + \frac {7 d \sin ^{3}{\left (a + b x \right )}}{9 b^{2}} + \frac {2 d \sin {\left (a + b x \right )} \cos ^{2}{\left (a + b x \right )}}{3 b^{2}} & \text {for}\: b \neq 0 \\\left (c x + \frac {d x^{2}}{2}\right ) \sin ^{3}{\left (a \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 4.31, size = 69, normalized size = 0.92 \begin {gather*} \frac {{\left (b d x + b c\right )} \cos \left (3 \, b x + 3 \, a\right )}{12 \, b^{2}} - \frac {3 \, {\left (b d x + b c\right )} \cos \left (b x + a\right )}{4 \, b^{2}} - \frac {d \sin \left (3 \, b x + 3 \, a\right )}{36 \, b^{2}} + \frac {3 \, d \sin \left (b x + a\right )}{4 \, b^{2}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.63, size = 79, normalized size = 1.05 \begin {gather*} \frac {7\,d\,\sin \left (a+b\,x\right )}{9\,b^2}-\frac {c\,\cos \left (a+b\,x\right )-\frac {c\,{\cos \left (a+b\,x\right )}^3}{3}+d\,x\,\cos \left (a+b\,x\right )-\frac {d\,x\,{\cos \left (a+b\,x\right )}^3}{3}}{b}-\frac {d\,{\cos \left (a+b\,x\right )}^2\,\sin \left (a+b\,x\right )}{9\,b^2} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________